package com.shushan.base;

import android.os.Environment;

/**
 * @ClassName: Constants
 * @Desciption: 常量类
 * @author: yichaohua
 * @date: 2018-02-09
 */
public class Constants {

    public final static String OS_TYPE = "android";

    public final static boolean isForEditors = false;//是否给编辑部使用：设置为false则为正常版本，true则会开启编辑审题特有功能

    public final static int GRADE_ONE_ID = 1;
    public final static int GRADE_TWO_ID = 2;
    public final static int GRADE_THREE_ID = 3;
    public final static int GRADE_FOUR_ID = 4;
    public final static int GRADE_FIVE_ID = 5;
    public final static int GRADE_SIX_ID = 6;

    public final static int SUBJECT_CHINESE_ID = 7;
    public final static int SUBJECT_MACH_ID = 8;
    public final static int SUBJECT_ENGLISH_ID = 9;

    public final static String APP_ID = "wx0ec846353caa2e10";
    public final static String OPPO_APP_SECRET = "1759d7802440B8c74a64c495eD3C00c7";

    public static final String HUAWEI_PACKAGE_NAME = "com.shushanbao.huawei";
    public static final String MASTER_PACKAGE_NAME = "com.shushan.shushanbao";
    public static final String PACKAGE_NAME = "com.shushan.shushanbao";
    public static final String UMENG_MESSAGE_SECRET = "bc1ddddb60461dd708e43b3ddcec20a9";
    public static final String XIAOMI_PUSH_APP_ID = "2882303761517812205";
    public static final String XIAOMI_PUSH_APP_KEY = "5541781231205";
    public static final String FLYME_PUSH_APP_ID = "114354";
    public static final String FLYME_PUSH_APP_KEY = "8fb2a445c58a4bd88fe3c222e9e8c31e";
    public static final String UMENG_ALIAS_CHILD_ID_KEY = "shushan_child_id";
    public static final String UMENG_ALIAS_USE_ID_KEY = "shushan_use_id";

    public final static String SPEAKING_EXAM_ALREAD_SCORE_ACTION = "speaking_exam_already_score_action";
    public final static String USER_CHANGE_RECEIVER_ACTION = "user_change_receiver_action";
    public final static String ANSWERED_RECEIVER_ACTION = "answered_receiver_action";
    public final static String STOP_DAEMON_RECEIVER_ACTION = "stop_daemon_receiver_action";
    public final static String STOP_PLAY_RECEIVER_ACTION = "stop_play_receiver_action";
    public final static String MEDIA_CONTROLLER_ON_BACK_DOWN_ACTION = "media_controller_on_back_down_action";
    public final static String FREE_WARN__RECEIVER_ACTION = "com.shushan.smartstudy.FreeWarnReceiver";
    public final static String ONE_PIX_FINISH_RECEIVER_ACTION = "one_pix_finish_receiver_action";
    public final static String JUMP_TO_SHOULD_ANSWER_TOPIC_ACTION = "jump_to_should_answer_topic_action";
    public final static String ALLOW_DIAL_PACK_NAME = "com.android.incallui";
    public final static String ALLOW_WECHAT_PACK_NAME = "com.tencent.mm";
    public final static String ALLOW_HUAWEI_PAY_PACK_NAME = "com.huawei.hwid";
    public final static String CURRENT_CHILD_ID_SHAREPREFERS_KEY = "current_child_id_shareprefers_key";
    public final static String CURRENT_USE_ID_SHAREPREFERS_KEY = "current_use_id_shareprefers_key";
    public final static String PARENT_PASSWD_SHAREPREFERS_KEY = "parent_passwd_shareprefers_key";
    public final static String LOGIN_MOBILE_SHAREPREFERS_KEY = "login_mobile_shareprefers_key";
    public final static String IS_LOGIN_SHAREPREFERS_KEY = "is_login_shareprefers_key";
    public final static String MAIN_PERMISSION_HAS_SET_SHAREPREFERS_KEY = "permission_main_has_set_shareprefers_key";
    public final static String APP_NOT_FIRST_SHAREPREFERS_KEY = "app_not_first_login";
    public final static String APP_NOT_FIRST_HOME_SHAREPREFERS_KEY = "app_not_first_go_home";
    public final static String APP_NOT_FIRST_PARENT_SHAREPREFERS_KEY = "app_not_first_go_parent";
    public final static String IS_CHILD_CONTROL_SHAREPREFERS_KEY = "is_child_control_shareprefers_key";//是否进入孩子桌面标记
    public final static String OUT_TRADE_NO_SHAREPREFERS_KEY = "out_trade_no_shareprefers_key";
    public final static String LOCK_CHILD_PSW_SHAREPREFERS_KEY = "lock_child_psw_shareprefers_key";
    public final static String FREE_GAME_PSW_SHAREPREFERS_KEY = "free_game_psw_shareprefers_key";
    public final static String FREE_GAME_START_JSON_SHAREPREFERS_KEY = "free_game_start_json_shareprefers_key";
    public final static String WHITE_JSON_SHAREPREFERS_KEY = "white_json_shareprefers_key";
    public final static String BLACK_JSON_SHAREPREFERS_KEY = "black_json_shareprefers_key";
    public final static String GO_SOFT_SWITCH_SHAREPREFERS_KEY = "go_soft_switch_shareprefers_key";
    public final static String ALLOW_PLAY_SWITCH_SHAREPREFERS_KEY = "allow_play_switch_shareprefers_key";
    public final static String PROJECT_EYE_SWITCH_SHAREPREFERS_KEY = "project_eye_switch_shareprefers_key";
    public final static String PROJECT_EYE_INTERVAL_SHAREPREFERS_KEY = "project_eye_interval_shareprefers_key";
    public final static String ALLOW_CONVERT_SWITCH_SHAREPREFERS_KEY = "allow_convert_switch_shareprefers_key";
    public final static String START_GAME_TIME_SHAREPREFERS_KEY = "start_game_time_shareprefers_key";
    public final static String EXIST_GAME_TIME_SHAREPREFERS_KEY = "exist_game_time_shareprefers_key";
    public final static String ACTIVE_USE_DAY_SHAREPREFERS_KEY = "active_use_day_shareprefers_key";
    public final static String DIALOG_ONCE_DAY_SHAREPREFERS_KEY = "dialog_once_day_shareprefers_key";

    public final static String SYS_KEY = "reason";
    public final static String SYS_HOME_KEY = "homekey";
    public final static String SYS_RECENT_KEY = "recentapps";
    public final static String ACTION = "action";
    public final static String ACTION_FINISH_SELF = "action_finish_self";
    public final static String CLEAR_WARN_DIALOG_KEY = "clear_warn_dialog";
    public final static String ACTION_START_ACCESSIBILITY_SETTING = "action_start_accessibility_setting";
    public final static String FOREGROUND_RTA_SERVICE_CLASS_NAME = "com.shushan.service.ForegroundRTAService";
    public final static String DIAL_RTA_SERVICE_CLASS_NAME = "com.shushan.service.DialRTAService";

    public final static int WARN_TIP_FORWARD_TIME = 5;

    //1、同步练习 2、智能练习 3、边学边练 4、重点练习 5、难点练习 6、易错练习 7、专项练习
    public final static int TYPE_SYNC_EXERCISE = 1;
    public final static int TYPE_SMART_EXERCISE = 2;
    public final static int TYPE_LEARN_BY_DO = 3;
    public final static int TYPE_KEY_POINT_EXERCISE = 4;
    public final static int TYPE_DIFFICULT_POINT_EXERCISE = 5;
    public final static int TYPE_EASY_WRONG_EXERCISE = 6;
    public final static int TYPE_SPECIAL_TOPIC_EXERCISE = 7;
    public final static int TYPE_STRANGE_WORDS_EXERCISE = 8;//生字
    public final static int TYPE_SPEAKING_EXERCISE = 9;//口语
    public final static int TYPE_ENGLISH_WORDS_EXERCISE = 10;//单词练习
    public final static int TYPE_HEARING_EXERCISE = 11;//听力
    public final static int TYPE_READ_RECITE_EXERCISE = 12;//朗读背诵
    public final static int TYPE_ORAL_CALCULATE_EXERCISE = 13;//口算
    public final static int TYPE_CHINESE_SECT_EXERCISE = 14;//语文分科练习
    public final static int TYPE_MACH_SECT_EXERCISE = 15;//数学分科练习
    public final static int TYPE_ENGLISH_SECT_EXERCISE = 16;//英语分科练习
    public final static int TYPE_V_CHINESE_EXERCISE = 17;//语文微课
    public final static int TYPE_V_MACH_EXERCISE = 18;//数学微课
    public final static int TYPE_V_ENGLISH_EXERCISE = 19;//英语微课

    public final static String SYNC_EXERCISE = "tblx";
    public final static String SMART_EXERCISE = "znlx";
    public final static String LEARN_BY_DO = "bxbl";
    public final static String KEY_POINT_EXERCISE = "zdlx";
    public final static String DIFFICULT_POINT_EXERCISE = "ndlx";
    public final static String EASY_WRONG_EXERCISE = "yclx";
    public final static String SPECIAL_TOPIC_EXERCISE = "zxlx";
    public final static String STRANGE_WORDS_EXERCISE = "szlx";
    public final static String SPEAKING_EXERCISE = "kylx";
    public final static String ENGLISH_WORDS_EXERCISE = "dclx";
    public final static String HEARING_EXERCISE = "tllx";
    public final static String READ_RECITE_EXERCISE = "ldbs";
    public final static String ORAL_CALCULATE_EXERCISE = "kslx";
    public final static String CHINESE_BRANCH_EXERCISE = "yw_zxlx";//语文分科练习
    public final static String MATH_BRANCH__EXERCISE = "sx_zxlx";//数学分科练习
    public final static String ENGLISH_BRANCH__EXERCISE = "yy_zxlx";//英语分科练习

    public final static String CLIENT_PHONE_NUM = "073189565555;803";

    public static final String DOWNLOAD_FOLDER = Environment.getExternalStorageDirectory().toString()+"/shushan/";
    public static final String ADVERT_DOWNLOAD_FOLDER = DOWNLOAD_FOLDER + "advert/";
    public static final String EXAM_DATA_DOWNLOAD_FOLDER = DOWNLOAD_FOLDER+"exam/";
    public static final String STRANGE_WORDS_DOWNLOAD_FOLDER = EXAM_DATA_DOWNLOAD_FOLDER+"StrangeWords/";
    public static final String ENGLISH_WORDS_DOWNLOAD_FOLDER = EXAM_DATA_DOWNLOAD_FOLDER+"EnglishWords/";
    public static final String SPEAKING_EXAM_DOWNLOAD_FOLDER = EXAM_DATA_DOWNLOAD_FOLDER+"SpeakingExam/";
    public static final String HEARING_EXAM_DOWNLOAD_FOLDER = EXAM_DATA_DOWNLOAD_FOLDER+"HearingExam/";

    public static final String SCORE_RESULT_JUMP_TYPE = "jumpType";
    public static final int JUMP_TYPE_EXAM_REPEAT = 1;//跳转类型:重考
    public static final int JUMP_TYPE_WRONG_TOPIC_WATCH = 2;//跳转类型：查看错题
    public static final int JUMP_TYPE_TOPICS_WATCH = 3;//跳转类型：查看习题
    public static final int JUMP_TYPE_EXAM_CONTINUE = 4;//继续上次未完成的试卷

    public static final String HUAWEI_PAY_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtBOA50JWqowxh+Q4Am7BlUyYSNj7uNytB2qDrzLIbxca6Ls5ZEq95pbluow7eNS5M+JHnrZ9D8GEvmTpvvPSK0jVlHYIOc3zOatIR83BgvsPBDB6XI/Dx+6HMAGqZX00bVI58bt9Kb9NcJbEoK5OA16LbcU72Q4P7ytWSWJdhVzIfLLKH/tjsOvB6u0/MgBkjVhmQK71nqisCJ7t7GN1lQrGga0OY67PRXib7FLfI5b6UUqTXN8xJFgPIq/+p7YF/xQFn2gxFGc/O1/OX9CQncE90SlpOaTmdAI88LUnug+Wj8QumvgRMnzjpr3+iWEAnac8HHzT7NC/LkpmLDOZpwIDAQAB";
}
